(function () {
  'use strict';

  angular
    .module('client')
    .service('UserService', UserService);

  UserService.$inject = ['$http', 'USER_API'];
  function UserService($http, USER_API) {

    this.login = login;
    function login(email, password) {
      return $http.post(USER_API.login,{
        email: email,
        password: password,
      });
    }
  }

}());
